package cn.qn.mapper.news;

import cn.qn.dto.news.ImageTextDTO;
import cn.qn.dto.news.ImageTextQueryDTO;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: Bryant
 * @date: 2019/5/29
 * @description:
 */
@Mapper
public interface ImageTextMapper {
    /**
     * 分页查询图文信息
     *
     * @param query
     * @param pb
     * @return
     */
    List<ImageTextDTO> pageQueryImageTexts(ImageTextQueryDTO query, PageBounds pb);

    /**
     * 分页查询招图文信息
     *
     * @param query
     * @return
     */
    Integer pageQueryImageTextsCount(ImageTextQueryDTO query);
}
